1)set the rule_max, the max num of rules 2)add the check of rule num when the user request to create new rule