 
     @subscribeToRepo()
     @subscribeToBuffer()
+
+  afterAttach: ->
+    @commitsArea.hide()
+    @updatePathText()
+    @updateStatusBar()
 
   beforeRemove: ->
     @unsubscribeFromBuffer()

    if @buffer = @pane.activeItem.getBuffer?()
      @buffer.on 'modified-status-changed', @updateBufferHasModifiedText
      @buffer.on 'saved', @updateStatusBar

    @updateStatusBar()

  updateStatusBar: =>
    @updateGrammarText()

        @a href: '#', class: 'grammar-name inline-block', outlet: 'grammarName'

  initialize: (rootView, @pane) ->
    @subscribe @pane, 'pane:active-item-changed', =>
      @subscribeToBuffer()
      @updateStatusBar()
      @updatePathText()
    @subscribe @pane, 'pane:active-item-title-changed', =>
      @updatePathText()
