Added MessageDialog class