fix onchange for checkbox input