remove window reference