add category
upgrade api with data layer