added header functionality to all pages