Edited CategoryModel to get all categories