      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]

     if not @columns[i]
      columns.push col

    columns.push
     id: id
     name: id

    @elems.sidebar.innerHTML = ''

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