fix function name in controller