fixed bug in editing foods. all functionality seems to be in place now