Updates for window losing focus