Changed name of function in controller