mapping task and controller class