Add variables for zindex and transition for labels