Re-inserted the alertdialog changes