Fix CommonDialogFragment and add AlertDialogFragment