I have been looking into this and one solution involves adding event listeners in JS. Could you let me know what you think on the issue?