create methods for search form