Code formatting in class MenuBar.