Changes in behaviour when clicking nodes and functions cleaned (in two different files)