minor change on scripts UI and onsave method