added index template
added integration test