update window reference