Popup events nb-opened and nb-closed