 
 (defn init-data [user-id state]
   (ajax/GET
-     (path-for (str "/obpv1/user/profile/" user-id) true)
-     {:handler (fn [data]
-                 (reset! state (assoc data :user-id user-id
-                                      :show-link-or-embed-code nil
-                                      :permission "success"
-                                      :badge-small-view false)))}
-     (fn [] (swap! state assoc :permission "error"))))
+    (path-for (str "/obpv1/user/profile/" user-id) true)
+    {:handler (fn [data]
+                (reset! state (assoc data :user-id user-id
+                                :show-link-or-embed-code nil
+                                :permission "success"
+                                :badge-small-view false)))}
+    (fn [] (swap! state assoc :permission "error"))))
 
 (defn handler [params]
 

    [:div
     (if-not owner?
       [:div.col-xs-12[:div.pull-right
         (connect-user user-id)]]
        )

     [:div {:id "profile"}
      [:div.col-xs-12


(defn toggle-visibility [visibility-atom]
  (ajax/POST
    (path-for "/obpv1/user/profile/set_visibility")
    {:params  {:visibility (if (= "internal" @visibility-atom) "public" "internal")}
     :handler (fn [new-value]
                (reset! visibility-atom new-value)
                )}))

(defn profile-visibility-input [visibility-atom]
  [:div.col-xs-12
