updated votescontroller