finished header and footer setting