error handling in the UI