update the modal's z-index