Moved dialog to DialogFragment