adding the taskService and cleaning up task ctrl