implemented to still persist the them and the items in the todo list after closing the browser.