Add form to dialog