Switching between play and editor works