improve ux of dialog