hotfix search route changed to use routes and fixed bug in search view pages.