Bug fix

Fixed a bug where repeated clicking on a forward and back button would
break the menu