How to create a form with tables as depicted in the image