added upvoting functionality