undo for edit, delete and parenting