save page to localStorage