implementation of an interactive graph, added real time output to loading bar