Add parser to check if rule is valid and show appropriate icon