update category attributes