fix layout when menus are reloaded