A finite element based level set method for two-phase incompressible flows