add the history function in office.