     cg.appendChild ce
 
     @showTerminalLink = document.createElement 'a'
-    @showTerminalLink.href = '#'
     @showTerminalLink.addEventListener 'click', => @doShowTerminal()
-    ce.appendChild @showTerminalLink
     showTerminalLinkSpan = document.createElement 'span'
     showTerminalLinkSpan.className = 'icon icon-triangle-up'
     showTerminalLinkSpan.textContent = 'Show Terminal'
     @showTerminalLink.appendChild showTerminalLinkSpan
+    ce.appendChild @showTerminalLink
 
     ce = document.createElement 'div'
     ce.className = 'control-element'
     cg.appendChild ce
 
     @hideTerminalLink = document.createElement 'a'
-    @hideTerminalLink.href = '#'
     @hideTerminalLink.addEventListener 'click', => @doHideTerminal()
-    ce.appendChild @hideTerminalLink
     hideTerminalLinkSpan = document.createElement 'span'
     hideTerminalLinkSpan.className = 'icon icon-triangle-down'
     hideTerminalLinkSpan.textContent = 'Hide Terminal'
     @hideTerminalLink.appendChild hideTerminalLinkSpan
+    ce.appendChild @hideTerminalLink
 
     @terminalControls = document.createElement 'div'
     @terminalControls.className = 'control-group terminal-controls'

    cbr.appendChild @executionControls

    @startExecutionLink = document.createElement 'a'
    @startExecutionLink.href = '#'
    @startExecutionLink.addEventListener 'click', => @doStartExecution()
    @executionControls.appendChild @startExecutionLink
    startExecutionLinkSpan = document.createElement 'span'
    startExecutionLinkSpan.className = 'text-success icon icon-playback-play'
    startExecutionLinkSpan.textContent = 'Run'
    @startExecutionLink.appendChild startExecutionLinkSpan

    @stopExecutionLink = document.createElement 'a'
    @stopExecutionLink.href = '#'
    @stopExecutionLink.addEventListener 'click', => @doStopExecution()
    @executionControls.appendChild @stopExecutionLink
    stopExecutionLinkSpan = document.createElement 'span'
    stopExecutionLinkSpan.className = 'text-error icon icon-primitive-square'
    stopExecutionLinkSpan.textContent = 'Stop'
    @stopExecutionLink.appendChild stopExecutionLinkSpan

    @noExecutionModeAvailableInfo = document.createElement 'span'
    @noExecutionModeAvailableInfo.className = 'text-subtle'


  updateOnDidExitWorkspace: ->
    @hide()
    @activeTerminalSubscriptions?.dispose()
    @activeLanguageSubscription?.dispose()
    @activeTerminal = null
    @activeLanguage = null
    @fontSizeSelect.removeEventListener 'change', @onDidChangeFontSize
    @off()

  updateOnDidChangeActiveLanguageOfWorkspace: (@activeLanguage) ->
    @activeLanguageSubscription?.dispose()
    @activeLanguageSubscription = @activeLanguage.observe => @updateOnDidChangeActiveLanguage()

  updateOnDidChangeActiveTerminalOfWorkspace: (@activeTerminal) ->
    @activeTerminalSubscriptions?.dispose()
    @activeTerminalSubscriptions = new CompositeDisposable()
    @activeTerminalSubscriptions.add @activeTerminal.observeIsVisible (isVisible) => @updateOnDidChangeIsVisibleOfActiveTerminal(isVisible)
    @activeTerminalSubscriptions.add @activeTerminal.onDidChangeSize (size) => @updateOnDidChangeTerminalSize(size)
    @activeTerminalSubscriptions.add @activeTerminal.observeFontSize (fontSize) => @updateOnDidChangeTerminalFontSize(fontSize)
    @activeTerminalSubscriptions.add @activeTerminal.observeIsExecuting (isExecuting) => @updateOnDidChangeIsExecutingOfActiveTerminal(isExecuting)

    @terminalContainer.innerHTML = ''
    @terminalContainer.appendChild(atom.views.getView(@activeTerminal))

  updateOnDidChangeActiveLanguage: ->
    unless @activeTerminal.isExecuting()
      if @activeLanguage.isExecutable()
        @startExecutionLink.style.display = ''
