add history loading