update window