Voting functionality now working