Little changes in htmldelegate.

Now solving problem with wron repainting of custom "Checkbox".