refactored parameter handling, added support for rendering a single radiobutton