changed localhost to ec2 URL