Add error dialogs when interaction with the API fails