redesign rule editing dialog