Fixed refresh bug: added some divs for headers and footers.