switch between editing modes