fixed mapping for switching between current and previous window