vote UI logic