update reference with checkbox