Remove hardcode of the host url