add vote function