fixed initChat workflow to improve the look of the page