more changes to tasks controller