front-end error display and backend database reconnection when disrupted