integrating vote functionality