Create main window of the application