add active states to tasks and categories on the task page