refactor index to match new layout template