copied voting code - part 1
added selectable groups to category