add main window position saving