Add document title to history