Add Index to templates