 
 (defn init-data [user-id state]
   (ajax/GET
-    (path-for (str "/obpv1/profile/" user-id) true)
-    {:handler (fn [data]
+   (path-for (str "/obpv1/profile/" user-id) true)
+   {:handler (fn [data]
                (let [data-with-uuids (assoc data :blocks (vec (map #(assoc % :key (pe/random-key))
                                                                    (get data :blocks))))]
                  (swap! state assoc :permission "success" :edit {:active-tab :content} :edit-mode (session/get! :edit-mode false))
                  (swap! state merge data-with-uuids)))}))
-
 
 (defn handler [site-navi params]
   (let [user-id (:user-id params)

       :content [edit-profile-content state]
       :theme [edit-theme state]
       :settings [edit-settings state]
      :preview [view-profile state]
       nil)]))

(defn content [state]

     [ph/field-after blocks state nil]]))

(defn edit-profile-content [state]
  (fn []
    [:div (if (= 0 @(cursor state [:active-index]))
            [:div#page-edit
             [pe/action-buttons state]
             [:div.panel.thumbnail
              [:div.panel-heading
               [:h1 (t :profile/Personalinformation)]]
              [:div.panel-body
               [pe/edit-profile state]]]
             [profile-blocks state]]
            @(cursor state [:tab-content]))]))

(defn view-profile [state]
  (let [blocks (cursor state [:blocks])]
    [:div;#profile
     (if (= 0 @(cursor state [:active-index]))
       [:div#page-view
        [:div {:id (str "theme-" (or @(cursor state [:theme]) 0))
               :class "page-content"}
         [:div.panel
          [:div.panel-left
           [:div.panel-right
            [:div.panel-content
             [:div.panel-body
              [userinfoblock state]
              (into [:div];#profile]
                    (for [index (range (count @blocks))]
                      (ph/block (cursor blocks [index]) state index)))]]]]]]]
       @(cursor state [:tab-content]))]))

(defn theme-selection [theme-atom themes]
  (reduce (fn [r theme]
