active modal z-index to prevent overlapping elements