Module Contracts - Pop Up - Editing a query within a pop-up? - Filtering

Guys, I'm having trouble relating the module "Contracts" with a custom module named "address" that is also related to "accounts".

Since I already have filled the bill, I wanted to open the pop-up charges is only the "addresses" that linked "Account".

When I do research within a "pop-up" lists all the addresses, my question is how could I do this filtering, someone has been there?

Thanks,

Some images:

imagem1.JPG

imagem2.JPG

imagem3.png