     {:handler (fn [data]
                 (swap! state assoc :badge-settings data (assoc data :new-tag ""))
                 (if (= context "settings")
-                  (swap! state assoc :tab [se/settings-tab-content data state init-data true]
+                  (swap! state assoc :tab [se/settings-tab-content data state init-data]
                                      :tab-no 2)
                   (swap! state assoc :tab [se/share-tab-content data state init-data]
-                                     :tab-no 3)
-                  ))}))
+                                     :tab-no 3)))}))
 
 (defn congratulate [state]
   (ajax/POST

                                :content-language (init-content-language (:content data))
                                :tab-no tab-no
                                :permission "success"))
                 (init-badge-connection state (:badge_id data))
                 (cond
                   (== 2 (:tab-no @state))(show-settings-dialog id state init-data "settings")
                   (== 3 (:tab-no @state))(show-settings-dialog id state init-data "share")
                   )))}
    (fn [] (swap! state assoc :permission "error"))))

(defn show-settings-dialog [badge-id state init-data context]

            [salava.badge.ui.verify :refer [check-badge]]
            [salava.core.ui.tag :as tag]))


(defn init-badge-connection [state badge-id]
  (ajax/GET
   (path-for (str "/obpv1/social/connected/" badge-id))
   {:handler (fn [data]
               (swap! state assoc :receive-notifications data))}))

(defn init-data [state id tab-no]
  (ajax/GET
