voting works on frontend