It's not a new feature. We used custom_dialog.js to create airplane-mode dialog dynamically, but this will conflict with action_menu and @basiclines suggested we should apply confirm dialog in building-block instead of using custom_dialog.js. So I have to place a dialog  form here for certain special confrim dialog like airplane-mode-confirm.