add search button to legal form in GUI