fixing search form output and inputs