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