confirm dialog copied to admin scripts