handling exception about lower version os., when using OSIntegratedDialog