Connected the whole app with the API