updated routes and added working searchbar