Added click to expand node functionality