implemented checkbox tri-status including indeterminate

TODO: implement API for retrieving checkbox status as json object