add post and update.