   steps:
     start:
       template: require './start.jade'
-    run:
-      template: require './run.jade'
     run_mongo:
       template: require './run.jade'
 
 
   transitions:
-    "start > run": (data)->
-      _.extend data, wdc_base.fetch_inputs("#state-start")
-
     "start > run_mongo": (data)->
       _.extend data, wdc_base.fetch_inputs("#state-start")
       url = "http://#{data.mongodb_host}:#{data.mongodb_port}/#{data.mongodb_db}/#{data.mongodb_collection}"

  rows: (connection_data, lastRecordToken)->
    offset_str = if lastRecordToken == "" then 0 else lastRecordToken
    offseted_url = "#{connection_data.url}&skip=#{offset_str}"
    console.log "offseted_url:", offseted_url
    load_jsonp offseted_url, (data)->

      {offset: offset, rows: rows, total_rows: total_rows} = data

      console.log {offset: offset, rows: rows, total_rows: total_rows}

      # when we reached the last page, it is signaled by returning
      # 0 rows


      data.url = url

    "enter run_mongo": (data)->
      wdc_base.set_connection_data( data )
      tableau.submit()
