z-index change not propagated to css