Convert custom study dialogs to DialogFragment