add search route logic