add undo plugin