Radio button and checkbox input functionality