execute a search when form is submitted