Replaced controllers actions with indixes