Add loading screen and client-side error handling.