update templates of editor