polling local storage functional