Added option to hide the toolbar and menu from the main window