update window position