set up index layout