index view working