Added more functionality to search form.