updated z index of close button