created an async component for doing http client requests