fixed weights plugin checkboxes

some cleanup to use set object's functions