modified template for index