refactor MenuBar