add new post and update an old post.