adds an item listener to the archive checkbox