Tree persists state on page reload