refactored new_food.php to make it more readable