Fix radio buttons not autochecked in some dialogs

Radio button groups were not enclosed in <form>...</form>.
Merge pull request #1222 from ussuri/fix-radio-buttons-not-autochecked

Fix radio buttons not autochecked in some dialogs