embedding client into the page