Added construction of main window.