localstorage now working