add header and tail files
move code to layout files
move body tag out of head