added rules to html