updated index and template