added product index in action script