solve trouble with checkbox