     (.condition! query col condition)
     (.refresh this))
   (column-values [this col data-fn error-fn]
-    (.execute this (.sql-distinct query col data-fn error-fn))))
+    (.execute this {:raw-sql (.sql-distinct query col)} data-fn error-fn)))
 
 (defn filter-box [col controller]
   (let[condition (atom (-> controller .-query (.condition col) (or {})))]
     (fn[col controller]
-      [:div {:style {:z-index 100}}
+      [:div
        [:form.form-inline
         [c/input (c/bind-value condition :op :type "select" :id "operator")
          [:option {:value ""} "none"]

    (reset! order state))
  (sql [_]
    (sql/sql-select @cols @tables @conditions @order @group))
  (sql-distinct [this col]
    (sql/sql-select [(str "distinct " col)] @tables @conditions [] []))
  (sql-count [_]
    (sql/sql-select ["count(*)"] @tables @conditions [] [])))

          [c/button {:on-click #(.set-sort sort-control i nil) :title "No Sort"} [:i.fa.fa-sort]]]
         (case @active-box
           :filter [filter-box col controller]
           :distinct [dist-values col controller]
           [:span])]))))

(defn scroll-bottom? [e]
  (let [elem (.-target e)
