added undo delete function