fixed z-index issue when opening a modal dialogue