update document title with last message info