create foodcontroller and repository to DRY up code and tidy it up a lot