fixed issues with menus in my code