add put request for upvotes and downvotes