refactor vote form (generate array of candidates for use in select elements in less redundant manner)