added prompt on back button