               save opinion_views_ui
 
               if opinion_views_ui.group_by
-                view = 
-                  key: 'group_by'
-                  name: attribute.name
-                  group: (u, opinion, proposal) -> 
-                    group_val = if attribute.pass then attribute.pass(u) else fetch(u).tags[opinion_views_ui.group_by] or 'Unreported'
-                    if attribute.input_type == 'checklist'
-                      group_val.split(',')
-                    else 
-                      group_val
-                  options: attribute.options
-
-                toggle_group view, true
+                set_group_by_attribute attribute 
 
               else 
                 delete opinion_views.active_views.group_by

    delete opinion_views.active_views[attribute.key]
    save opinion_views

OpinionFilters = ReactiveComponent
  displayName: 'OpinionFilters'
  render: -> 

        active_filters[k] = v 



    

