abstracted menubar and toolbar to separate methods

added createToolbar method
added createMenubar method