EditDialog abstract class added, some improvement in MainWindow