Migrate dialog button selector to `dialogs.js`