Extrated index file into layout