Add the confirm dialog before deleting items in editMode