add rules and add link from index.html