created changeMode() to clean up transitions. esc to exit edit shape (not translate) now reverts shape.