           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
 
 
 

    delete active_views[view_name] #activating an active view toggles it off
  else 
    if view_type == 'filter'
      if view_name == default_filters.just_you.key
        to_delete = []
        for k,v of active_views
          if v.view_type == view_type
            to_delete.push k 
        for k in to_delete
          delete active_views[k]
      else if active_views[default_filters.just_you.key]
        delete active_views[default_filters.just_you.key]

    active_views[view_name] = 
      key: view.key

      all_groups = opinion_views.active_views.group_by.options
      group_colors = get_color_for_groups all_groups

    activated_weights = get_activated_weights()

    DIV null, 
      if attributes.length > 0 
