Updating the document title on view change