added addVote to views