added collapse/toggle node functionality and theme