add frozen function for checkbox input