Updated the apicontroller