           style: 
             listStyle: 'none'
 
-          for k,v of default_weights
-            do (k,v) ->
+          for weight in get_weights()
+            do (weight) ->
               LI 
                 style: 
                   marginRight: 8
                   display: 'inline-block'
 
                 BUTTON 
-                  'data-tooltip': v.label
-                  className: "weight opinion_view_button #{if activated_weights[k] then 'active' else ''}"
+                  'data-tooltip': weight.label
+                  className: "weight opinion_view_button #{if activated_weights[weight.key] then 'active' else ''}"
                   onClick: ->
-                    toggle_weight v
+                    toggle_weight weight
                   onKeyDown: (e) -> 
                     if e.which == 13 || e.which == 32 # ENTER or SPACE
-                      toggle_weight v
+                      toggle_weight weight
                       e.preventDefault()
 
-                  if v.icon
-                    v.icon if activated_weights[k] then 'white'
+                  if weight.icon
+                    weight.icon if activated_weights[weight.key] then 'white'
 
                   SPAN 
                     style: 
-                      paddingLeft: if v.icon then 10
-
-                    v.name
+                      paddingLeft: if weight.icon then 10
+
+                    weight.name
 
 
 



    activated_weights = get_activated_weights()
    for k,v of default_weights
      continue if !activated_weights[k]
      minimized_views.push
        name: v.name 
        label: 'Weigh by'
        # icon: weigh_icon
        toggle: do (v) -> ->
          toggle_weight v

    UL 
      style: 

      clear_all()

      dfault = customization('opinion_views_default')

      if !show_others || dfault?.active == 'Just you'
        toggle_opinion_filter just_you_filter
        opinion_views_ui.active = 'Just you'
      else if dfault
        # LIMITATION: default date views not implemented
