add class to history table