working on editing rules and deleting them