     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]
   
 

$.activityIndicator.style = style
$.RightNavButton.text = String.fromCharCode("0xe10e")
$.RightNavButton.addEventListener 'click', (e) ->
  dummyRow = $.UI.create 'TableViewRow',
    classes:'dummyRow'
  $.tableview.setData [dummyRow]
  
  statusesQuery (statuses) ->
    createOnTapInfo statuses
  
  

Cloud = require("ti.cloud")
pageNumber  = 1
pageSection = 0
if Ti.Platform.name is 'iPhone OS'
  style = Ti.UI.iPhone.ActivityIndicatorStyle.DARK
else
