generated voting controller