added writing to the historical data page