refactored into CategoriesController and CategoryViewResolver