adding update to binary string if checkbox is selected