check localstorage on app load