             # Grid-list controls
             else if @input_fields[question].control.appearance is "grid-list"
               current_tree = @input_fields[question].tree
+
+              # Create the table/grid!
               table_name = @input_fields[question].name + '_table'
               $('#' + @input_fields[question].name + '_field')
                 .fadeIn(1)


              question++
              question_info = @input_fields[question]

              while question_info.tree is current_tree
                switch_question = $('#' + $($('.control-group').eq(question)[0]).data('key') + "_field")

                  attrs[attr.nodeName] = attr.nodeValue
                )
                $('#' + switch_question[0].id + ' select').replaceWith( () ->
                  return $("<tr />", attrs).append($(@).contents()) )

                $('#' + switch_question[0].id + ' option').each( (index) ->
                  attrs = { }
                  $.each($(@)[0].attributes, (idx, attr) ->
                    attrs[attr.nodeName] = attr.nodeValue
