-Fixed collapse node bug
-moved sag append to helper functions and out of the index page
-changes to global vars and css
-cleaned outdated logic and commented out code