updateCategoryList now accepts a taskList and updates the CategoryList accordingly