Add functionality to agreementVm and bind to search click function.