update ui of editor