re-arranging footer and template