cache unsaved tasks in localStorage