              :on-click (fn [e]
                          (async/put! events (om/value page))
                          (.preventDefault e))}
-        (om/build page/thumbnail page {:opts opts})]))))
+        (om/build (:view opts) page {:opts opts})]))))
 
 (defn ^:private thumbnails [pages owner]
   (reify

                      {:key :id
                       :init-state {:events events}
                       :state {:current-page current-page}
                       :opts {:enable-rotate? true}})]))))

(defn ^:private pages-pane-header [document]
  (om/component

      (.scrollIntoView el))))

(defn ^:private page-cell [page owner opts]
  (assert (:view opts))
  (reify
    om/IDidMount
    (did-mount [_]
