edit allergy function