How to add a button on the dialog box in Update Items

frappe.ui.form.on(‘Update Items’, {
refresh: function(frm) {
frm.add_custom_button(“My Button”, function() {
}, ‘Button Group’);
}
});

but is list not dialog box