Change API url to a constant