updates url method for models.