added error message box above the table when failed to get data from the api