add search to frontend