ToDoList: Registered event handler for addTask()