Fixed updateDialog. Version checking of dialog metadata