add rule editing