implemented upvote and downvote for both questions and answers