add page location var to the header