update checkbox status when inserting a new one