finish search url and add url function