Added document title updating