 
     super options, data
 
-    @headerButtons = {}
-    @panes         = []
+    @headerButtons  = {}
+    @panesContainer = []
+    @panes          = []
 
     @createHeader()
     @createHeaderButtons()  if options.buttons?.length

    baseSplit         = @createSplitView "vertical", [leftInnerSplit, rightInnerSplit]

    @container.addSubView baseSplit

    @panes.push pane1, pane2, pane3, pane4

  pistachio: ->
    """

      "editor"           : EditorPane
      "video"            : VideoPane
      "preview"          : PreviewPane
    paneType             = paneOptions.type
    PaneClass            = paneTypesToPaneClass[paneType]
    pane                 = new PaneClass paneOptions

    targetContainer.addSubView pane
    @panes.push pane

  # GETTERS #
  getPaneContainerByIndex: (index) ->
    return  @panesContainer[index]

  # LAYOUT CREATOR HELPERS #
  createSplitView: (type, views) ->
    return  new KDSplitView {
      resizable : yes
      sizes     : ["50%", "50%"]
      type
