fixing functions to add graphs in a near future
added a function for loading graphs