add main window class