fix z-index of elements when modal appears