added handling for voting in a poll