added vote functionality