I have modified the PopupManager.js in WAB 2.5 to have a link that runs a geoprocessing script when clicked. The issue that I am having now is that the link appears for all features in my map but the geoprocessing script only relates to one feature. I have added a check that throws an error if a user tries to run the link from a incorrect feature but ideally the link wouldn't appear at all. Is there a way to only show the link when a particular feature is selected? I have attached my popupManager.js.