Fixes to MainDialog

Now the dialog shows correctly the data