end editing (avoids messing up the edit stack)