implemented server-side voting