Undo implemented when addind and deleteing an object.
Adding the undo function when adding and deleting an object.