remember if window is open