Save ref to window as win