changed localhost to ec2 api