Overlay z-index fix and added transition