add history dailog