Added the z-index selecting and fading and removed the background from the closed state.