house keeping and adding save state and page records