Fix error on drawing plot when no quantities selected
Fix network not rebuilding
Networks now rebuild if the script's source has been changed since the last tab visit.