collapse the advance tab if new rule is not valid
fix typo
fix typo in js
Merge pull request #39 from pgolm/feature/rule_collapse_advanced

show advance tab