update input for checkbox