support local storage to remember the page number we are on.