private void popUpAlertDialog(String eventName) {
   Bundle b = new Bundle();
   b.putParcelable("USER", thisUser);
   Intent thisIntent = new Intent(getActivity().getBaseContext(), MainActivity.class);
   thisIntent.putExtras(b);
   b.putString("TITLE", "Event Not Found!");
   b.putString("EVENTNAME", eventName);
   MyDialogFragment fragment = new MyDialogFragment();
   fragment.setArguments(b);
   FragmentManager frgManager = getFragmentManager();
   fragment.show(frgManager, "MyDialog");
 }
  public void createWarningDialog(String msg) {

    MyDialogFragment dialogfragment = (MyDialogFragment) MyDialogFragment.newInstance(this, msg);
    dialogfragment.show(fm, "dialog2");
  }