be aware of window state changes