-# history is broken
-# render in initializer, not when attaching?
+# 400 bad request when aborting changefeed
+# table view shows no results when it means "no more results" or "no results yet"
+# abort button blinks when runnign a normal query
+# abort blinks constantly when running a changefeed
+# no element found when closing connection
+
+# refactor query_result
+
 # ticker shows throughout
-# clicking abort doesn't stop loading the changefeed batch
-# table view shows no results when it means "no more results" or "no results yet"
-# load next batch button is never hidden
-# abort button blinks
-# no element found when closing connection
-
 # move more results button into individual views
 # returned/displayed/skipped has extra comma and is generally ugly
 

        render: (args) =>
            # ATN many of these fields don't get updated when their value changes
            if @query_result?.ready
                @$el.html @template
                    limit_value: @container.limit
                    skip_value: @query_result.position
                    execution_time: 12345 # ATN
                    query: "query" # ATN
                    has_more_data: not @query_result.ended
                    query_has_changed: args?.query_has_changed
                    show_more_data: not @query_result.ended and not @container.state.cursor_timed_out
                    cursor_timed_out_template: (
                        @cursor_timed_out_template() if not @query_result.ended and @container.state.cursor_timed_out)
                    execution_time_pretty: 12345 # @ATN_metadata.execution_time_pretty


        show_next_batch: (event) =>
            event.preventDefault()
            $(window).scrollTop(@$el.offset().top)
            @view_object?.show_next_batch()

    class OptionsView extends Backbone.View
