Adding filtering functionality to the Contracts page.