add main window controller