update the document.title on every page change