Added error handling for refresh and initial load