added checkbox lisentner and fixed json parsing bug