add BaseDialogFragment and more methods for BaseFragment and
BaseActivity