updating post type