disallow editmode and editing inside racemode