Initializes MenuBar after MainView to avoid segfault