made scope and partial to header/footer