minor fix for searching routes and ajax requests