IsOpen() function added
Set local options for tree on toggle.