update method of getting base_url