added localStorage functionality to the tasks