set up index, first view file