   _distributionSummary = signal null
   _columnNameSearchTerm = signal null
   _currentPage = signal 0
-  _maxPages = signal 10000 #TODO FIXME 
+  _maxPages = signal Math.ceil _frame.total_column_count / MaxItemsPerPage
   _canGoToPreviousPage = lift _currentPage, (index) -> index > 0
   _canGoToNextPage = lift _maxPages, _currentPage, (maxPages, index) -> index < maxPages - 1
 


  key: _frame.frame_id.name
  rowCount: _frame.rows
  columnCount: _frame.columns.length
  size: Flow.Util.formatBytes _frame.byte_size
  chunkSummary: _chunkSummary
  distributionSummary: _distributionSummary

    if searchTerm isnt _lastUsedSearchTerm
      pageIndex = 0
       
    startIndex = pageIndex * MaxItemsPerPage
    itemCount = if startIndex + MaxItemsPerPage < _frame.total_column_count then MaxItemsPerPage else _frame.total_column_count - startIndex
    _.requestFrameSummarySliceE _frame.frame_id.name, searchTerm, startIndex, itemCount, (error, frame) ->
      if error
        #TODO
      else
