Fixed extended submitSelectedVariables and deleteVariables not being called when workflow is from create nursery rel: GCP-8880

change strategy instead of replacing the global function we replace the
on click property on the DOM
Reviewer: Dan V.