refactor rule config page