add setcook to cook controller