main window prototype