       [:h4 "Objectives "
        [:a.glyphicon.glyphicon-question-sign
         {:href "https://github.com/pepijndevos/LolItemSets#objectives"}]]
-      ;[objective-checkbox "Gold" (algo/item-wrapper algo/cost)]
-      [objective-checkbox "Attack damage per second" algo/build-dps]
-      [objective-checkbox "Life Steal per second" algo/build-lsps]
-      [objective-checkbox "Ability power" (algo/item-wrapper algo/ability-power)]
-      [objective-checkbox "Mana" algo/mana]
-      [objective-checkbox "Movement speed" algo/move-speed]
-      [objective-checkbox "Poke per minute" algo/poke]
-      [objective-checkbox "Burst" algo/burst]
-      [objective-checkbox "Effective Health (AP)" algo/build-hp-ap]
-      [objective-checkbox "Effective Health (AD)" algo/build-hp-ad] [:br]
+      (into [:div] (for [{:keys [name calc optimizable] :as stat} stats
+                         :when optimizable]
+                     [objective-checkbox name calc]))
       [number-selector "Champion level" :champ-level 18 1]
       [number-selector "Number of items" :num-items 6 1] [:br]
       [:div.btn-group.btn-group-justified

   [:div.media-body
    [:h4.media-heading
     [item-select idx item]
     [:sapn
      [:img {:src (data/gold-url)}]
      (:total (:gold item))]]
    [:div {:dangerouslySetInnerHTML {:__html (:description item)}}]]])

                                                {:id "2004" :count 1}
                                                {:id "3340" :count 1}]}]}}))

(defonce init (go
                (let [champ-chan (data/champ-chan)
                      item-chan (data/item-chan)
                      champs (<! champ-chan)
                      items (<! item-chan)]
                  (swap! app assoc :items items :champs champs :champ (val (first champs))))))

(defn recommend []
  (let [{:keys [items num-items champ champ-level props]} @app
