Add save function for tasklist