adjust script menu
refactor ui system