added upvote downvote functionality