add color to history table