Voting functionality in view
Modified Voting function in server.
Client is now able to retrieve the vote and give a new vote