Added back button protection