Wrap the form in a div to avoir horizontal scroll.
Change size of the dialog and fix close button behavior.