A phase field approach for two phase flow simulations