adding the voting functionality