Created a function that should change the layout of the graph nodes dynamically. Have not tested this yet.
Made a branch that checks which tab you click on and only calls that panel's update function. That way each tab isn't updated everytime you click on any tab.