integrating layout on index pages