finished add/edit rules and categories