added set url function in model