Run function after button clicked

Hi there!
I am wondering if there is any functionality to track if the button on the UI was clicked? For example, I want to run a computation each time after fiducial is placed

You can automatically run computations when a node changed by adding an observer. See PerkLab programming tutorials for details and examples.