dynamically display historical data