Added event listener for loop