added alertdialog
still not working