fix head and footer