add upvote and downvote methods to controller