Not really a big deal but you can use one on dialog like:
on *:dialog:ns:*:*: {
if ($devent == init) { did -a NS 2 %Pass }
elseif ($devent == sclick) {
if ($did == 3) { set %Pass $did(1) | did -ra NS 2 %Pass }
elseif ($did == 4) { unset %Pass | did -r NS 2 }
}
}
Also you should use "did -ra" for the add are you will add and set the old one + the new one.