Update widgets to support calling two functions when a custom function is passed as a parm to the buttons template. Added a call to buttonClick function.
The first function to be called is 'buttonClick', the second is the custom function. Previously only the custom function was called.
This caused validation to be executed even when button was Cancel or Disapprove.