built out index and detail template