z-index changed for main panel