Decoupled event handlers from the HTML structure