Renabled back button logic