Use template for MessageBox and MessageBoxSimple