      id = col.id
      sampleCol = col
      n++
-    id = "#{id}_0"
+    idHead = "#{id}_0"
+    id = "#{id}_1"
 
     data = {}
     for col, i in @table.columns when not @columns[i]

    @elems.sidebar.innerHTML = ''

    Weya elem: @elems.sidebar, context: this, ->
     @$.elems.btn = @button '.u-full-width.button-primary', 'Delete',
      on: {click: @$.on.apply}
      style: {display: 'none'}
     @button '.u-full-width', on: {click: @$.on.cancel}, 'Cancel'

    @table.size *= n

    data[id] = new Array @table.size
    data[idHead] = new Array @table.size
    m = 0
    for col, i in @table.columns when @columns[i]
     for d, j in @table.data[col.id]
      data[id][m + j * n] = d
      data[idHead][m + j * n] = col.name
     m++

    columns = []
