Add main window structure