add history control