matching the layout file to the main index