Added localstorage feature