changed buttons in newactivity to one button and added alertdialog