client side of voting working