Fixing the confirmation detection handler for the delete action