Fix radio buttons not autochecked in some dialogs

Radio button groups were not enclosed in <form>...</form> - this prevented the `checked` attribute from working.

@dinhviethoa