updated index template to source things right