updated category and sub-category