udpated example with change of zIndex