Adds global array to keep track of project tree state
Restores project tree state on project deletion/addition