Radio buttons and drop down menu added. More fixes to the UI generation.