task persistence in localstorage - solution