 
     @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'


    @advancedSettings.emit 'ace.settingsView.setDefaults', @ace

    if hasBottomBar
      $spans = @caretPosition.$ 'span'

      @ace.on 'ace.change.cursor', (cursor) =>
        log '...........'
        $spans.eq(0).text ++cursor.row
        $spans.eq(1).text ++cursor.column

    @ace.on 'ace.requests.saveAs', (contents, options) =>
      @openSaveDialog options
