Changed light/dark world switching to use events.