added client side voting.