update post model