modified CategoryController