add component state class auto update
add component.toggleState
fix compiler warnings
Merge remote-tracking branch 'origin/component-state'