Adapted index to template