apply explicit z-index to modal along with container

this fixes issues with multiple modals being displayed on iOS in some
cases (DataSplice/datasplice-client#210)