added search results, moved some verncular code from controller to service