add and replace votes dynamically (client side)