Added UI logic for voting.