improved search form functionality