Handle checkbox input for bool and input number for int