fix z index issue with dialog buttons