added confirm function for deleting reference value