added functiosn for upvoting and downvoting