add a main window