Further improvements to _check_box_toggled method