update category and lesson

call back function