revert changes in metro-core.js & metro-dialog.js