moved into header and footer