Replaced .click to .delegate to support dynamic trees/lists
Replaced .click to .delegate to support dynamic trees/lists