         SlickGrid (.. js/Slick -Grid)
         DataView (.. js/Slick -Data -DataView)
         dataview (DataView.)
-        grid (SlickGrid. (str "#" table-id) dataview columns sg-options)]
+        grid (SlickGrid. (str "#" table-id) dataview columns sg-options)
+        {{{:keys [num-displayed-records total-page-count]} :paging} :table-page}
+        @shared/app-state]
     ;; dataview / grid hookup
     (bind-external-slick-grid-event-handlers grid external-event-handlers)
     (.subscribe (.-onRowCountChanged dataview)

       (let [e (<! event-chan)
             {:keys [submission-to-rank submission-clicked submission-unclicked
                     filter-by new-columns re-render]} e
             update-data! (partial om/update! app-state
                                   [:table-page :submission-clicked :data])]
         (when submission-to-rank

                         (inc (aget (.getPagingInfo dataview) "pageNum"))})))

    ;; page, filter, and data set-up on the dataview
    (init-sg-pager grid dataview :page-count total-page-count)
    (.setPagingOptions dataview
                       #js {:pageSize (or num-displayed-records 25)})
    (.setFilter dataview (partial filterfn form))
    (.setItems dataview (clj->js data) _id)
    [grid dataview]))
