add voting functionality