implement graph loading for index view