add undo actions endpoint