updating post model