PLD: move event handler to modal js