Added vote function in view