set correct zindex