add edit function and fix runui bug