Added functionality to vote for a proposal