Added UI for editing rules.