update editor and syntaxtree control