added fetch code to chatbuilder.html