display graph on index page