index view should incorporate layout