implement update category with the API