make a common header and footer