enhanced zIndex for dialogs