update to window position saving