added the toggle on-off for the rule classes on sidebar