add history record mode