z-index for overlay and text color for dialog are added.