add index, header, footer and resources