changed alertdialog to fragment dialog