revamped searching a bit.  implemented some of the new-contract page.