fixing back button bug on menu