added index view and modified the model