PLD: handle response on xhr submit