Open warning message in dialog or custom function