add main window