refactored upvote and downvote methods into vote controller