 (defn add-form-onclick [data-set focus]
   (if (= nil (form-validator @data-set))
     (let [onres (fn[json]
-                  (secretary/dispatch! "/"))]
+                  (reset! data-set {:isactive true}))]
       (http-post (str serverhost "mutations")
                  onres  (.serialize (Serializer.) (clj->js (map-mutation-data @data-set)))))
     (reset! focus "on")))

       [add-check-input-element :senddate "Send Date" data-set focus]
       ]
      [:div.box-footer
       [:div.col-sm-8.col-md-offset-5 
        [button-tool-bar
         [button {:bs-style "default" :on-click form-cancel } "Cancel"]
         [button {:bs-style "info" :on-click save-function} "Save"]]]
       ;;[:span (str @data-set)]
       ]]]]])


       [:div.col-sm-8.col-md-offset-5 
        [button-tool-bar
         [button {:bs-style "default" :on-click form-cancel } "Cancel"]
         [button {:bs-style "info" :on-click save-function } "Save"]]]
       ;;[:span (str @data-set)]
       ]]]]])

