update the newTasks member variable when and if a task is added or deleted