more back button logic