update and add new post