added loading and html interceptor for errors