             [salava.badge.ui.verify :refer [check-badge]]
             [salava.core.ui.tag :as tag]))
 
-(declare show-settings-dialog)
-(declare badge-content)
 
 (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)
-                )}))
+               (swap! state assoc :receive-notifications data))}))
 
 (defn init-data [state id tab-no]
   (ajax/GET

    {: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]
                                     :tab-no 2)
                  (swap! state assoc :tab [se/share-tab-content data state init-data]
                                     :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))))}
    (fn [] (swap! state assoc :permission "error"))))

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