Created main window and added basic configuration.