                 @$('.raw_view_textarea').height(height)
 
         render: =>
-            @$el.html @template JSON.stringify(@parent.results)
-            @
+            @$el.html @template JSON.stringify @current_batch()
+            return @
+
+        add_row: (row) =>
+            @render()
 
     class ProfileView extends ResultView
         className: 'results profile_view_container'


        handle_mousemove: (event) =>
            @view_object?.handle_mousedown?(event)

    class OptionsView extends Backbone.View
        dataexplorer_options_template: Handlebars.templates['dataexplorer-options-template']

                                return
                            @results.push row
                            @trigger 'add', @, row
                catch error
                    @set_error error

        set_error: (error) =>
            @type = 'error'
            @error = error
            @trigger 'error', @, error
            @discard_results = true
            @ended = true 

    class @Container extends Backbone.View
        id: 'dataexplorer'
