now local storage and deletion works.