added vote functionality partially