refactored updating attributes for checkboxes to account for qty attribute.