Implement rule editing