set and get entries in localstorage