i want that $did(name,N).id will return the Nth id in the dialog
and $did(name,0).id - total id's