create layout header and footer