       return '▼'
 
   nextPage: =>
-    @currentPage @opts.currentPage + 1
+    @currentPage parseInt(@opts.currentPage) + 1
+    @start()
 
   prevPage: =>
-    @currentPage @opts.currentPage - 1
+    @currentPage parseInt(@opts.currentPage) - 1
+    @start()
 
 window.Ubret.Table = Table
    @pages = new Array
    @on 'next-page', @nextPage
    @on 'prev-page', @prevPage

  start: =>
    super


  # Helpers
  paginate: =>
    @numRows = Math.floor((@opts.height - 50 )/ 30) # Assumes thead height of 50px and tbody height of 30px
    @numPages = Math.ceil(@opts.data.length / @numRows)

    sortedData = _.sortBy @opts.data, (d) => d[@sortKey]
