update switch-window