 
     @advancedSettings.disable()
 
-    unless options.advancedSettings
-      @advancedSettings.hide()
+    @advancedSettings.hide()  unless options.advancedSettings
 
     @setViewListeners()
 
   setViewListeners:->
+    hasBottomBar = @getOptions().createBottomBar
+
     @ace.on 'ace.ready', => @advancedSettings.enable()
 
     @ace.on 'ace.changeSetting', (setting, value) =>

    else
      @findAndReplaceView = new KDCustomHTMLView

    @caretPosition    = new KDCustomHTMLView
      tagName         : 'div'
      cssClass        : 'caret-position section'
      partial         : '<span>1</span>:<span>1</span>'

    @advancedSettings = new KDButtonViewWithMenu
      style           : 'editor-advanced-settings-menu'

    @_windowDidResize()

  pistachio:->
    hasBottomBar = @getOptions 'createBottomBar'
    template     = """
      <div class="kdview editor-main">
        {{> @ace}}
        {{> @findAndReplaceView}}
      </div>
    """

    if hasBottomBar
      template = """
        <div class="kdview editor-main">
          {{> @ace}}
          <div class="editor-bottom-bar clearfix">
            {{> @caretPosition}}
            {{> @advancedSettings}}
          </div>
          {{> @findAndReplaceView}}
        </div>
      """

    return template
