initiate page template from index