store tasks in localStorage