How to pass the created form to a client