uchecking of events leads the event to disappear

I have a tree on the left frame and a calendar on the right frame.When i check a node on the tree the corresponding events of the node are shown in the calender.Now the problem is, when i uncheck the node i want the events to disappear and give the calender in the same mode of view i.e year or week or day in which i was viewing the events.

i want the events to disappear
Scheduler has the next method