isn't there a way to take the reference to the bind element?, i mean, you're delegating the click to the close-icon, but it should be a way to make reference to history-modal, just to prevent making double DOM queries