Set z-index for ui dialog and overlay