improve new post page and edit post page, add some dependencies