added upvote/downvote functionality