.on was not correctly used. fixes #251
Fixing Admin form for editing rules