setting up activities linked to tasks