call actionIndex when segements only have class name