format search form