improves handling of click events in check tree