 
      ;; search page
      [:node-create [:app-model :search :*] navigate-search]
-    ;; TODO - still need to clear up more of table
-     [:node-destroy [:app-model :search :*] (clear-id "table_stats")]
+     [:node-destroy [:app-model :search :*] clear-search]
      [:value [:app-model :search :* :search-title] set-search-title]
      [:value [:app-model :search :* :search-results] render-search-results]
 

    ;; didn't use get-parent-id cause it doesn't work for new multi-level paths
    (dom/set-html! (dom/by-id "content") (html {}))))

(defn set-search-title [renderer [_ path _ new-value] _]
  (dom/set-html! (dom/by-id "search_title") new-value))


                        :row-partial p/tag-search-row
                        :caption (format "Total: %s" (count (map :url things)))))))

;; we'd like to destroy/hide these but that requires changing render-search-results
(defn clear-search [_ _ _]
  (dom/set-html! (dom/by-id "table_stats") "")
  (dom/set-html! (dom/by-id "search_table") ""))

;;; Other pages
;;;
