     row.add shopName
     row.add label
     row.add postedDateLabel
-    rows.push row
-
-  return $.tableview.setData rows
+    section.add row
+  return section
 
 
-statusesQuery = (callback)->
+
+
+statusesQuery = (page,callback)->
   $.activityIndicator.show()
   Cloud.Statuses.query
-    page: 1
+    page: page
     per_page: 20
   , (e) ->
     $.activityIndicator.hide()
     if e.success
+      pageNumber++
+
       callback e.statuses
     else
       alert "開栓情報が取得できませんでした"
   
 exports.move = (_tab) ->
   _tab.open $.onTapWindow
-  statusesQuery (statuses) ->
-    createOnTapInfo statuses
-    
+  statusesQuery pageNumber,(statuses) ->
+    section = createOnTapInfo(statuses)
+    $.tableview.setData [section]
   
 

      longitude: status.place.longitude
      shopInfo:status.place.custom_fields.shopInfo
      webSite: status.place.webSite

    row = $.UI.create 'TableViewRow',
      classes:'onTapRow'
      shopData:shopData

$.activityIndicator.style = style
$.RightNavButton.text = String.fromCharCode("0xe10e")
$.RightNavButton.addEventListener 'click', (e) ->
  # 一度初期状態に戻してからリフレッシュする
  pageNumber  = 1
  dummyRow = $.UI.create 'TableViewRow',
    classes:'dummyRow'
  $.tableview.setData [dummyRow]
  
  statusesQuery pageNumber,(statuses) ->
    section = createOnTapInfo(statuses)
    $.tableview.setData [section]

  
$.tableview.addEventListener 'scrollEnd', (e) ->
  $.tableview.scrollable = false
  $.tableview.opacity = 0.3
  statusesQuery pageNumber,(statuses) ->
    createOnTapInfo statuses
  
  
