pull out header and footer