added local storage use to persist tasks