Web front end connecting to api