updating check boxes