added request to api (connecting to localhost:5000)