refactor index to use our wireframe