refactors search_form.erb into layout.erb