                                      (reset! input-error true)
                                      (do
                                        (reset! input-error false)
-                                       (swap! filter-items conj {:id (random-uuid)
-                                                                 :query (if (= @filter-type :contains)
-                                                                          (str/lower-case @filter-input)
-                                                                          (js/parseFloat @filter-input))
-                                                                 :filter-type @filter-type}))))]
+                                       (add-filter filter-items filter-input filter-type false))))]
+
+
         [:div {:style {:flex "1 0 auto" :width "100%" :height "100%" :display "flex" :flex-direction "column"}}
           [:div.filter-control
            [:div.filter-control-input

               (when (pos? (count @traces))
                 [:span "(" [:button.text-button {:on-click #(do (trace/reset-tracing!) (reset! traces []))} "clear"] ")"])]
             [:th "meta"]]
            [:tbody (render-traces showing-traces filter-items trace-detail-expansions)]]]]))))

(defn resizer-style [draggable-area]
  {:position "absolute" :z-index 2 :opacity 0

               [:td {:style row-style}
                    [:div.op-string
                     [:span {:on-click (fn [ev]
                                         (add-filter filter-items (name op-type) :contains true)
                                         (.stopPropagation ev))}
                      (str op-type)]]]
               [:td {:style    row-style}
                    [:div.op-string
                     [:span {:on-click (fn [ev]
                                         (add-filter filter-items (name op-name) :contains true)
                                         (.stopPropagation ev))}
                      op-name]]]
               [:td
                {:style (merge row-style {
                                          ; :font-weight (if (< slower-than-bold-int duration)
