Fix bugs with the merged code
Add the rule detail page