changed index view to show data