added voting functionality