functionality for adding new rule, deletion of the rule