Change index from list to grid