adding voting functionality