Adding api controller as well as changing up the way the search works on the front end