Removed redundant name of function in controller