                   attrs[attr.nodeName] = attr.nodeValue
                 )
                 $('#' + switch_question[0].id + ' select').replaceWith( () ->
-                  return $("<ul />", attrs).append($(@).contents()) )
+                  return $("<tr />", attrs).append($(@).contents()) )
 
                 $('#' + switch_question[0].id + ' option').each( (index) ->
-                  console.log(switch_question)
                   attrs = { }
                   $.each($(@)[0].attributes, (idx, attr) ->
                     attrs[attr.nodeName] = attr.nodeValue

                  attrs.name = switch_question.data('key')
                  $(@).replaceWith( () ->
                    return $("<input />", attrs) ) #.append($(@).contents()) )
                )

                switch_question.fadeIn(1).addClass('active')

            # 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)
