update category and lesson