add compatible ui; add rule generator;