added in UI to turn defects on/off and rebuilt final.