put the appropriate html stuff into the appropriate pages, removed redundant headers, footers, scripts