intercepts http requests to show loading states