Removed unused checkbox code