     (neko.debug/keep-screen-on this)
     (reset! listing (read-logfile-or-default (*a)))
     (on-ui
-     (set-content-view! (*a) (main-layout (*a)))
-     (set-elmt (*a) :listing (format-listing @listing)))))
+     (set-content-view! (*a) (main-layout (*a))))))

      (str k)
      trimmed)))

(defn format-measurements [m]
  (->>
   (map (fn [[k v]]
            (format "%s: %s" (trim-keyword k) v))
          m)
   (join ", ")))

(defn format-listing [lst]
  (->> (map (fn [[_ measurements]]
            (format "%s" (format-measurements measurements)))
          lst)
     (join "\n")))

(defn measurement->csv [m]
  (->> (map (fn [[k v]]

   [:button {:text "Add log",
             :on-click (fn [_]
                         (add-event activity))}]
   (format-listing @listing)])

;; This is how an Activity is defined. We create one and specify its onCreate
;; method. Inside we create a user interface that consists of an edit and a
