updated index template with pages