set up index view