reduced redundancy in buildTable but now the cook button doesn't seem to work. Not sure why, as I didn't touch CookButtonFun