moved upvote/downvote view code into partial