updated to DialogFragment