Refactored AlertDialogFragment