Add vote function