refactored HTML files into a layout file and an index file