implemented event delegation to use only one event listener on new tasks