Remove preventThai function, add warning dialog