implemented the API to retrieve checkboxtree status

TODO: clean up code.