added index view but its not working currently