adds voting functionality