Improved error handling in dashboard