Replacing the old the getCategories with the CategoryController list met...

To avoid the confusion about the why the getCatgories function was commented, I totally replaced with it's equivalent.