refactor rule config pages