switch between stateview and worldview