adds votes functionality