adds header and sub-header