better display of samples with headings and titles for each sample