add upvote method on post