Changed findZIndex so it doesn't use the popups existing z-index