created route for search, also few other small modifications