adds vote functionality