When adding a task with a category sets the category