fix search url creating + global url variables