     atom.rootView.command 'find-and-replace:replace-all', @replaceAll
 
   showFind: =>
-    if not @hasParent()
-      @attach()
-      @addClass('find-mode').removeClass('replace-mode')
+    @attach() if not @hasParent()
     @findEditor.focus()
     @findEditor.selectAll()
 
   showReplace: =>
     @attach()
-    @addClass('replace-mode').removeClass('find-mode')
     @replaceEditor.redraw()
     @replaceEditor.focus()
     @replaceEditor.selectAll()

  serialize: ->
    findHistory: @findHistory.serialize()
    replaceHistory: @replaceHistory.serialize()
    showFind: @hasParent() and @hasClass('find-mode')
    showReplace: @hasParent() and @hasClass('replace-mode')
    modelState: @findModel.serialize()

  handleEvents: ->

    super()

  toggleFocus: =>
    if @findEditor.find(':focus').length > 0
      @replaceEditor.focus()
    else
      @findEditor.focus()
