built up index view and routes