Added BaseDialogFragment and fixed bug in empty dialog