added Header and footer support