update post new and create method