Added some methods in CategoriesController