Update document title immediately