fixed repetition of row creation by extracting the child_added event listener from the click event listener