update post and page