refactoring. finished InfoDialog.