updates element's checked property when checked value change