added history feature