the id is 0 when u are using the close dialog event,init AND when the event is triggered on the background of the dialog (so there is no any control there)