added dispatcher to show MessageBox on ui thread