now a modal will be displayed when api call fails and when the user attempts to obtain too much data