store data in localstorage