Added index to default template for resources