refactor ui editor module