added basic vote functionality