   updateSession: ->
     if @isSessionEnabled
       @fetchStorage (data) =>
-        @getDelegate().emit 'UpdateSessionData', @panes, data
+        @getDelegate().emit "UpdateSessionData", @panes, data
 
   restoreSession: (data, pane) ->
     return if data.latestSessions.length is 0
-    @getDelegate().emit "SessionListCreated", pane, @createSessionList data
-
-  createSessionList: (data) ->
-    items = @createSessionItems data
-    button = new KDButtonViewWithMenu
-      title    : "Sessions"
-      cssClass : "editor-button ace-session-button"
-      menu     : => items
-
-    return button
+    @getDelegate().emit "SessionListCreated", pane, @createSessionItems data
 
   createSessionItems: (data) ->
-    items      = {}
-    delegate   = @getDelegate()
-    date       = new Date()
+    items = {}
+    date  = new Date()
 
     data.latestSessions.forEach (sessionId, i) =>
       isSessionActive = yes for aceApp in appManager.appControllers.Ace when aceApp.getView().id is sessionId


    super options, data

    # TODO: fatihacet: session logic should refactored for ui and ux
    @isSessionEnabled = no #options.saveSession and options.sessionName

    appView = @getDelegate()



  initSession: (pane, callback) ->
    options     = @getOptions()
    @appStorage = new AppStorage options.sessionName, '0.2'

    @fetchStorage (data) =>
      if data then @restoreSession data, pane
