implements search route