Move layout.html to footer, header and index