Take of the inactive checkbox code