Stopping the menu from loading more than once