PLD: move handler to html