update and add the post