draft for main window