Refactor display of request data into component