refactor menu-bar