Add loading and error states.