Add a confirmation dialog to delete an item.