added dialog on back button press