initial version
adding better generation of radio buttons