created listener for worldSwitches