improved header and footer and basic template