Adding a function that scans the dialog and set focus on the first input...

... or button tag