save state when project tree disposed