add editor ,rewrite layout