   configDefaults:
     openProjectFindResultsInRightPane: false
 
-  activate: ({viewState, projectViewState, resultsModelState, paneViewState}={}) ->
+  activate: ({@viewState, @projectViewState, @resultsModelState}={}) ->
     atom.project.registerOpener (filePath) =>
       new ResultsPaneView() if filePath is ResultsPaneView.URI
 
     atom.workspaceView.command 'project-find:show', =>
-      @createProjectFindView(projectViewState, resultsModelState)
+      @createProjectFindView()
       @findView?.detach()
       @projectFindView.attach()
 
     atom.workspaceView.command 'project-find:show-in-current-directory', (e) =>
-      @createProjectFindView(projectViewState, resultsModelState)
+      @createProjectFindView()
       @findView?.detach()
       @projectFindView.attach()
       @projectFindView.findInCurrentlySelectedDirectory($(e.target))

    @projectFindView?.remove()
    @projectFindView = null

  serialize: ->
    viewState: @findView.serialize()
    projectViewState: @projectFindView.serialize()
    resultsModelState: @resultsModel.serialize()

      @findView?.detach()
      @projectFindView?.detach()

  createProjectFindView: ->
    @resultsModel ?= new ResultsModel(@resultsModelState)
    @projectFindView ?= new ProjectFindView(@resultsModel, @projectViewState)

    # HACK: Soooo, we need to get the model to the pane view whenever it is
    # created. Creation could come from the opener below, or, more problematic,
