fixed UI checkbox, added JSON debug