     else
       'single'
     @props.task.type = newType
-    @props.workflow.update 'tasks'
+    @props.onChange @props.task
 
   addChoice: (type) ->
     switch type

  addAnswer: ->
    @props.task.answers.push
      label: 'Enter an answer'
    @props.workflow.update 'tasks'

  addHighlighterLabels: ->
    @props.task.highlighterLabels.push
      label: 'Enter label'
    @props.workflow.update 'tasks'

  addTool: ->
    @props.task.tools.push


  removeChoice: (choicesName, index) ->
    @props.task[choicesName].splice index, 1
    @props.onChange @props.task
