preventing back button from going back to previous level