updated code for radio button navigation issue