add history feature