Implemented function global dialog block for all dialog.