adds header and footer plus content to index