       notebook
 
     update_view = (notebook) ->
-      # FIXME #163 can't call methods on component specs
-      notebook.component.set_cells notebook.cells
+      notebook.cells_model.set notebook.cells.slice()
 
     clear_notebook = (notebook) ->
       for cell in notebook.cells

    DocumentComponent = React.createClass
      displayName: 'DocumentComponent'
      mixins: [React.ComponentListMixin]
      render: ->
        React.DOM.div {className: 'document'}, @state.components
      # FIXME #163 can't call this

        # reset the file picker so change is triggered again
        $file_picker.val ''

      cells_model = Bacon.Model([])
      document = DocumentComponent {cells_model}
      # FIXME add file picker
      notebook =
        cells: []
        cells_model: cells_model
        input_number: 1
        output_number: 1
        component: document
