allow zIndex param to be provided and set on modal