change the menu_bar logic