update window on load