new version of main window.