modified to have a radio button