added tool bar and menu for main window. issue #7