         (if (and (not own?) coll)
           [:div.edition
            (if (:edit @local)
-             [:span {:on-click on-title-save} i/save]
-             [:span {:on-click on-title-edit} i/pencil])
+             [:span {:on-click persist} i/save]
+             [:span {:on-click on-edit} i/pencil])
            [:span {:on-click on-delete} i/trash]])]))))
 
 (def ^:private page-title

           [:div.dashboard-title-field
            [:span.edit
             {:content-editable ""
              :on-key-down on-title-edited}
             (:name coll)]
            [:span.close
             {:on-click #(swap! local assoc :edit false)}

  (let [local (:rum/local own)
        dashboard (rum/react dashboard-l)
        own? (:builtin coll false)]
    (letfn [(persist [event]
              (let [name (:coll-name @local)]
                (rs/emit! (di/rename-collection (:id coll) name))
                (swap! local assoc :edit false)))

            (on-key-down [event]
              (cond
                (kbd/esc? event)
                (swap! local assoc :edit false)

                (kbd/enter? event)
                (do
                  (dom/stop-propagation event)
                  (persist event))))

            (on-input [event]
              (let [content (dom/event->inner-text event)]
                (swap! local assoc :coll-name content)))

            (on-edit [e]
              (swap! local assoc :edit true :coll-name (:name coll)))

            (on-delete [e]
              (rs/emit! (di/delete-collection (:id coll))))]
      (html
