Create main window of application and a toolbar