fixing overlay issue, extracting index.html into sub-templates