improved error handling in web ui