Add a duplicate item undo command