updated search form behavior