fixed some minor bugs (setting radio button value)