added active attributes for rules and ability to deactivate rules