change apicontroller to controller