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

    (fn []
      (cond
        (= "initial" (:permission @state)) (layout/default site-navi [:div])
        (and user (= "error" (:permission @state)))(layout/default-no-sidebar site-navi (err/error-content))
        (= "error" (:permission @state)) (layout/landing-page site-navi (err/error-content))
        (= (:id user) (js/parseInt user-id)) (layout/default site-navi (content state))
        (and (= "success" (:permission @state)) user) (layout/default-no-sidebar site-navi (content state))

                     [:a {:href "#" :on-click #(do
                                                 (.preventDefault %)
                                                 (reset! theme-atom (js/parseInt (:id theme))))
                          :alt (t (:name theme)) :title (t (:name theme))
                          :aria-label (str (t :page/Selecttheme) " " (:id theme))}
                      [:div {:class (str "panel-right theme-container" (if (= @theme-atom (:id theme)) " selected"))} " "]]]))
          [:div {:id "theme-container"}] themes))

(defn edit-theme [state]
