                                 :user-id            user-id
                                 :badges             []
                                 :countries          []
-                                :country-selected   (:country init-values) #_(or (:country init-values) (session/get-in [:user :country] "all"))
+                                :country-selected   (session/get-in [:filter-options :country] (:country init-values)) #_(or (:country init-values) (session/get-in [:user :country] "all"))
                                 :advanced-search    false
                                 :name               (or (:name init-values) "")
                                 :issuer-name        (or (:issuer-name init-values) "")

                (swap! state assoc :all-applications (:applications data)))}))

(defn init-data [state init-params]
  (ajax/GET
    (path-for "/obpv1/application/")
    {:params  init-params
     :handler (fn [data]
                (let [{:keys [applications countries user-country]} data]
                  (swap! state assoc :applications applications
                         :countries countries)
                  (init-all-issuers state init-params)))}))


(defn init-values

                                :issuer-content {:name (t :core/All)}
                                :issuer-search false
                                :search-result []
                                :show-featured true})
        country (session/get-in [:filter-options :country] (:country init-values))]
    (init-data state init-values)
    (autocomplete-search state country #_(:country init-values))
    (fn []
      (if (session/get :user)
        (layout/default site-navi [content state badge_content_id])
