added support for radio buttons in custom options (converted select options code to behave dynamically)