refactored how view gets foods