sets z-index for modal box (previous was background)