undo instead of remove subidea - fixes insertIntermediate+esc