     @terminal.windowDidResize()
 
   getAdvancedSettingsMenuItems:->
-
     settings      :
       type        : 'customView'
       view        : new WebtermSettingsView
         delegate  : @
-
-
-class WebTermSessionItem extends KDListItemView
-  constructor: (options = {},data) ->
-    super options, data
-
-  partial: (data) ->
-    link = $(document.createElement("a"))
-    link.text data.name
-    link.attr "href", "#"
-    link.bind "click", (event) =>
-      data.mainView.sessionBox.hide()
-      data.mainView.terminal.joinSession data.id
-      event.preventDefault()
-    link

      @container.$().scrollLeft 0
    @addSubView @container

    @sessionBox = new KDView
      cssClass: "kddialogview"
      position:
        top: 10
        left: 10
    @sessionBox.hide()
    @addSubView @sessionBox

    label = new KDLabelView
      title: "Select session:"
    @sessionBox.addSubView label

    @sessionList = new KDListView
      itemClass: WebTermSessionItem
    @sessionBox.addSubView @sessionList

    label = new KDLabelView
      title: "Create session with name:"
    @sessionBox.addSubView label

    sessionNameInput = new KDInputView
      label: label
      defaultValue: (new Date).format "yyyy-mm-dd HH:MM:ss"
    @sessionBox.addSubView sessionNameInput

    createSessionButton = new KDButtonView
      title: "Create"
      callback: =>
        @sessionBox.hide()
        @terminal.createSession sessionNameInput.getValue()
        @setKeyView()
    @sessionBox.addSubView createSessionButton

    @terminal = new WebTerm.Terminal @container.$()

    if @options.advancedSettings


    @terminal.sessionEndedCallback = (sessions) =>
      @emit "WebTerm.terminated"

    @terminal.setTitleCallback = (title) =>
      #@tabPane.setTitle title

