Improving how zIndex is handled for modals.