Adding trigger of custom event for when the tree is loaded