modularize header and footer