Modify the search with a custom hook

Hello all,

Let's say that there are multiple ways to create relationships in Sugar. But is there any way to tell if a relationship comes from this screen? Or allow me to hook into this screen( I have attached a picture) and make a custom api call? If not, that's okay. I will try and find another way around. I was hoping to avoid using the "after_relationship_add" hook due to the sheer amount of contacts and additional queries this would add. I wanted a custom hook ONLY for the contacts added 1 by 1 to mark them with a initialized value that the ones added programmatic ally or through mass import don't have.

Thank you for your help!