             @view_object = new @views[@view]
                 parent: @
                 query_result: @query_result
-            @$('.tab-content').html @view_object.$el
+            @$('.tab-content').html @view_object.render().$el
             @init_after_dom_rendered()
             @set_scrollbar()
             # ATN @delegateEvents() ?

            @container.state.view = view
            @$(".link_to_#{@view}_view").addClass 'active'
            @$(".link_to_#{@view}_view").parent().addClass 'active'
            @new_view()

        set_scrollbar: =>
            if @view is 'table'

# ATN: remove jquery migration:
#   $.browser
# ATN: change query nomenclature:
# raw: text from the data explorer
# clean: cleaned somehow. how?
