display loading and error