Make ConfirmationDialogFrament class more generic.