added radio button functionality