Updated the product controller to use the first function instead of a bracketed index.