adds localstorage