nodeClicked() divided in openFolder() and openFile()