Refactored CategoriesVC to allow recursion for nested categories