Updated the CategoriesController file