add template files header, footer, index