Improve tree css class names and rules