Setting item tag to item index