Renamed state to windowMode