functionality added for radio button