Draft of the main window and control connection