added index couter to store controller view