moving index to layout, changed index