Dialog demo updates

The first two commits are trivial and I only have them here as I have another dialog demo commit that needs review.

Apart from review I also need some help. I tried to adopt the submit-handler from the tabs manipulation demo to allow enter keypress to submit and close the dialog. This only works if I add a submit button to the form, otherwise nothing happens on enter. Since this works on the tabs manipulation demo, it should work here, too.