writing the index templete