changed z-index of overlay and dialog