trying to figure out how to use the .index and .parent to splice the action from the tasks array