add undo (Segment Editor)