added header and footer to merge page