update and add a new post