better view loading error handling