Finish header and footer