moved hiding and unhiding of nodesSpinner