html.ruleGroups, better editing checks, some cleanup