making functional everything search for front end, plus fix bug on back end search