update post and add post