Modified index.hmtl to template