Added Undo Method for Add and Delete