added top and bottom code to each page

left children pages alone