made some changes to the controller syntax