Refactor to remove the multiple calls for every block and just parse the html in the response