Have finally wrangled all the z-index and open-close interactions