added conditional logic to improve the accordion system for the ingredient list